@import './includes/reset';
@import './includes/header';
@import './includes/footer';


*{
  margin: 0;
  padding: 0;
}
.container{
  width: 1200px;
  margin:0 auto;
}

/* 菜单部分 */
#menu{
  width: 100%;
  height: 46px;
  background: #3F2511;
  .container{
    height: 100%;
    line-height: 46px;
    ul{
      display: flex;
      text-align: center;
      color: white;
      li{
        width: 200px;
        display: flex;
        cursor: pointer;
        &:hover{
          background: #FAE569;
          color: #000;
        }
      }
      .active{
          background: #FAE569;
          a{
            color: #000;
          }
      }
     a{
      width: 200px;
      height: 46px;
       color: white;
     }
    }
  }
}
/* 商品广告 */
#cont{
 .container{
  display: flex;
  .product-sort{
    width: 200px;
    height: 450px;
    background-color: #FBF9E5;
    font-size: 14px;
    a{
      color: #43200c;
      &:hover{
        color: #ED7247;
      }
    }
    li{
      height: 49px;
      line-height: 49px;
      text-align: center;
      .list{
        width: 110px;
        margin:0 auto;
        display: flex;
        justify-content: space-between;
       span{
         font-size: 19px;
       }
       div{
         width: 73px;
       }
      }
    }
  }
  /* main */
  .main{
    width: 662px;
    margin: 5px 15px 0px 17px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* 轮播 */
    .swiper {
      width: 662px;
      height: 295px;
      border-radius: 15px;
      margin-top: 10px;
      cursor: pointer;
      .swiper-wrapper img{
        width: 100%;
        height: 100%;
      }
    }
    .classify{
      width: 660px;
      height: 128px;
      display: flex;
      justify-content: space-between;
      div{
        width: 273px;
        height:76px;
        border-radius: 18px;
        padding: 26px;
        color: #fff;
        position: relative;
        line-height: 25px;
        cursor: pointer;
        &:hover{
          transform: scale(1.01);
          box-shadow: 1px 3px 3px 2px rgba(#bdb5b1,.2);
        }
        img{
          width: 125px;
          height: 125px;
          position: absolute;
          top: 1px;
          right: 0px;
        }
        span{
          h3{
            font-size: 22px;
          }
          p{
            font-size: 18px;
          }
          button{
            width: 47px;
            height: 20px;
            border: 0 solid #000;
            background-color: #fff;
            color: #F0AFC3;
            border-radius:10px;
            margin-top: 8px;
            font-size: 14px;
            line-height: 14px;
          }
        }
      }
      .left{
        background: linear-gradient(to right,#F0ACC1,#F8D1Dc);
        display: flex;
      }
      .right{
        background: linear-gradient(to right,#F5C48A,#FDF4E8);
      }
     
    }
  }
  /* user */
  .user{
    width: 302px;
    height: 439px;
    margin-top: 13px;
    background: #F1F1F1;
    border-radius: 15px;
    .header{
      width: 100%;
      height: 140px;
      text-align: center;
      padding-top: 40px;
      font-size: 12px;
      cursor: pointer;
      p{
        margin-top: 15px;
        cursor: pointer;
       .userName{
         font-size: 18px;
       }
      }
      img{
        height: 70px;
        width: 70px;
        border-radius:50%;
      }
      span{
        margin-left: 13px;
        color: #DF8042;

      }
    }
    .notice{
      width: 100%;
      height: 120px;
      color: #666666;
      font-size: 12px;
      margin-left: 14px;
      font-family: tahoma, arial, 'Hiragino Sans GB', '\5b8b\4f53', sans-serif;;
      & p:first-child{
        font-size: 16px;
        span{  
          font-size: 16px;
          color: #000;
          font-weight: bold;
          margin-right: 10px;
          background: none;
        }
      }
      p{
        margin-top: 10px;
        span{
          margin-right: 10px;
          width: 33px;
          height: 20px;
          line-height: 20px;
          display: inline-block;
          text-align: center;
          background: rgba(#EEC794,.3);
          color: #ed8c0d;
        }
      }
    }
    .download{
      cursor: pointer;
      display: flex;
      width: 242px;
      height:68px;
      border-radius: 18px;
      padding: 30px;
      color: #fff;
      position: relative;
      line-height: 30px;
      font-size: 18px;
      background: linear-gradient(to right,#BADCFC,#E5F2FD);
      &:hover{
        transform: scale(1.01);
        box-shadow: 1px 3px 3px 2px rgba(#bdb5b1,.2);
      }
      .left{
        margin-left: 5px;
      }
      img{
        width: 84px;
        height: 84px;
        position: absolute;
        top: 18px;
        right: 23px;
        border-radius: 18px;
        border: 8px solid #afdcff;
      }
    }
  } 
  }
 }
/* 商品列表 */
#productList{
  .container{
    .cart{
      width: 100%;
      height: 56px;
      margin-top: 10px;
      line-height: 56px;
      display: flex;
      background-color: #ffffff;
      h3{
        margin:0px 54px;
        font-size: 18px;
        font-weight: normal;
      }
      p{
        font-size: 14px;
        color: #666666;
      }
    }
  /* 商品详情列表 */
  .productList{
    width: 100%;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    .product{
      width: 276px;
      height: 400px;
      margin-top: 30px;
      background: #fff;
      cursor: pointer;
      &:hover{
        transform: scale(1.01);
        box-shadow: 1px 3px 3px 2px rgba(#bdb5b1,.2);
      }
      img{
        width: 100%;
        height: 276px;
      }
      .product-details{
        width: 242px;
        height: 92px;
        padding: 10px 17px 10px 17px;
        color: #A8AAA5;
        //超出显示省略号
         & :nth-child(1){
           width: 242px;      // 设置宽度
           white-space: nowrap;      //强制超出不换行
           overflow: hidden;         //超出隐藏
           text-overflow: ellipsis;   //溢出的标识是省略号
          }
         & :nth-child(2){
           // margin-right:6px;
           padding: 10px 6px;
           line-height: 20px;
           display: flex;
           justify-content: space-between;
           align-items: center;
           & span:nth-child(1){
               display: inline-block;
               width: 40px;
               height: 20px;
               background-color: #ff4400;
               color: #ffffff;
               text-align: center;
             }
         }
         & :nth-child(3){
          span{
            color: #EB5428;
            span{
             font-size: 28px;
            }
          }
         }
      }
    }
  }
  /* 按钮 */
  .showMore{
    width: 250px;
    height: 70px;
    margin: 30px auto;
    button{
      width: 250px;
      height: 70px;
      border-radius: 45px;
      background-color: #FAE569;
      border: 0 solid #000;
      font-size: 24px;
    }
  }
}
}